import request from '@/utils/request'
const apiUrl = '/api/equipment-repair'
// 获取设备维修申请列表
export function getEquipmentRepairList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

// 获取设备维修申请详情
export function getEquipmentRepairDetail(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

// 保存设备维修申请
export function saveEquipmentRepair(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

// 删除设备维修申请
export function deleteEquipmentRepair(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 